<!-- 主页-协议采购清单验收-办理 -->
<section id="container">
    <!--main content start-->
    <section id="main-content">
        <section class="wrapper">
            <!--state overview end-->`
            <div class="row">
                <div class="col-lg-12">

                    <section class="panel" id="printbox">
                        <header class="panel-heading add-heading">
                            采购验收单{{receive.no}}
                            <i class="add-icon">编号：{{receive.checkCode}}</i>
                        </header>
                        <div class="panel-body">
                            <div class="bio-row line-row">
                                <table class="table table-bordered" style="text-align: center">
                                    <tbody>
                                        <tr>
                                            <td colspan="2">供应商</td>
                                            <td colspan="3">{{receive.supplieName}}</td>
                                            <td colspan="2">订单/合同编号</td>
                                            <td colspan="3">{{receive.contractCode}}</td>
                                        </tr>
                                        <tr>
                                            <td colspan="2">验收地点</td>
                                            <td colspan="3">{{receive.acceptanceAddr}}</td>
                                            <td colspan="2">验收日期</td>
                                            <td colspan="3">{{receive.acceptDate | date:'yyyy-MM-dd'}}</td>
                                        </tr>
                                        <tr>
                                            <td colspan="10" style="text-align: left;">验收内容：(可附表，但验收人员必须在附表签字)</td>
                                        </tr>
                                        <tr>
                                            <td rowspan="2" width="100px">设备名称</td>
                                            <td rowspan="2" width="200px">规格(参数)</td>
                                            <td rowspan="2" width="54px">单位</td>
                                            <td rowspan="2" width="55px">实收数量</td>
                                            <td colspan="2" width="130px">采购单位</td>
                                            <td colspan="2" width="130px">验收单位</td>
                                            <td rowspan="2" min-width="100px">备注<span style="font-size: 12px;">(固定资产编号)</span></td>
                                        </tr>
                                        <tr>
                                            <td width="55px">是否合格</td>
                                            <td width="75px">验收人</td>
                                            <td width="55px">是否合格</td>
                                            <td width="75px">验收人</td>
                                        </tr>
                                        <tr ng-repeat = "ss in receiveItems">
                                            <td>{{ss.equipmentName}}</td>
                                            <td>{{ss.specification}}</td>
                                            <td>{{ss.unit}}</td>
                                            <td>{{ss.receivedNum}}</td>
                                            <td>{{getQualified(ss.purchasePromise)}}</td>
                                            <td></td>
                                            <td>{{getQualified(ss.acceptPromise)}}</td>
                                            <td></td>
                                            <td>{{ss.remark}}</td>
                                        </tr>
                                        <tr>
                                            <td>验收意见*</td>
                                            <td colspan="9" style="text-align: left;">
                                                <p>以上设备经过安装调试完成，先按照订单/合同的要求进行验收,意见如下:</p>
                                                <ul>
                                                    <li>1、设备的品牌、外观、规格数量、配件是否正确？{{getWhether(receive.isEquipment)}}</li>
                                                    <li>2、经安装调试后的设备运行是否正常？{{getWhether(receive.working)}}</li>
                                                    <li>3、技术资料是否齐全？{{getWhether(receive.informationComp)}}</li>
                                                    <li>4、验收是否合格? {{getWhether(receive.qualified)}}</li>
                                                </ul>
                                                资产管理员(签名):
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>备注</td>
                                            <td colspan="9" style="text-align: left;">{{receive.descRemark}}</td>
                                        </tr>
                                    </tbody>
                                </table>
                            </div>
                        </div>
                    </section>

                    <section class="panel">
                        <div class="panel-body">
                            <p class="default-buttons">
                                <a href="javascript:void(0);" class="button-back btn btn-info" onclick="window.history.back()">返回</a>
                                <a href="javascript:void(0);" class="button-next  btn btn-primary btn-l10" id="word">导出word</a>
                                <a href="javascript:void(0);" class="button-next  btn btn-success btn-l10" id="print">打印单据</a>
                            </p>
                        </div>
                    </section>

                </div>
            </div>
        </section>
    </section>
    <!--main content end-->
</section>

<script type="text/javascript" src="js/receive/receive.js"></script>

<!-- 打印组件 -->
<script type="text/javascript" src="assets/print/jquery.jqprint-0.3.js"></script>

<!-- 导出word组件 -->
<script type="text/javascript" src="assets/html2word/FileSaver.js"></script>
<script type="text/javascript" src="assets/html2word/jquery.wordexport.js"></script>

<script>
    $(function () {
        //打印初始化  
        $("#print").click(function () {
            $("#printbox").jqprint();
        })
        //导出word  
        $("#word").click(function () {
            $("#printbox").wordExport();
        })
    })
</script>